﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml;
using System.Xml.Serialization;

namespace YourPersonalTrainer.BusinessLayer
{

    public class WorkoutItem
    {
        [XmlAttribute("Name")]
        public string Name
        { get; set; }

        [XmlAttribute("DurationInSeconds")]
        public int DurationInSeconds
        { get; set; }

        [XmlAttribute("AudioFileLocation")]
        public string AudioFileLocation
        { get; set; }

        public WorkoutItem()
        {
            Name = "";
            DurationInSeconds = 5;
        }


        public WorkoutItem(string aName, int aDurationInSeconds)
        {
            Name = aName;
            DurationInSeconds = aDurationInSeconds;
        }
    }
}
